package com.sdgakj.utils;

public class PropertiesUtil {
	
	private static final String UPLOAD_IMAGE_URL = "upload.image.url";
	private static final String UPLOAD_IMAGE_PATH = "upload.image.path";
	private static final String APNS_PRODUCTION = "apns.production";

	/**
	 * 获取图片服务器根路径
	 * 
	 * @return
	 */
	public static String getUploadImageUrl() {
		return PropUtil.getInstance().get(UPLOAD_IMAGE_URL);
	}
	
	/**
	 * 获取服务器文件存储根路径
	 * 
	 * @return
	 */
	public static String getUploadImagePath() {
		return PropUtil.getInstance().get(UPLOAD_IMAGE_PATH);
	}
	
	/**
	 * 获取APNS的生产环境true false
	 * 
	 * @return
	 */
	public static Boolean getApnsProduction() {
		return Boolean.parseBoolean(PropUtil.getInstance().get(APNS_PRODUCTION));
	}
	
	
	
}